package com.walle.activityservice.service;

import com.walle.activityservice.model.BusinessDefine;
import com.walle.common.page.PageBean;
import com.walle.common.page.PageParam;

/**
 * @author zhangjiapeng
 * @Package com.hdai.dps.service
 * @Description: ${todo}
 * @date 2018/12/19 11:22
 */
public interface BusinessDefineService {

    /**
     * 添加
     * @param businessDefine
     */
    void insert(BusinessDefine businessDefine);
    /**
     * 更新
     * @param businessDefine
     */
    void update(BusinessDefine businessDefine);


    /**
     * 根据ID获取
     * @param businessId
     * @return
     */
    BusinessDefine getById(Long businessId);

    /**
     * 分页查询
     * @param pageParam
     * @param businessDefine
     * @param sortColumnName
     * @param sortType
     * @return
     */
    PageBean<BusinessDefine> queryPage(PageParam pageParam, BusinessDefine businessDefine, String sortColumnName, String sortType);

    /**
     * 根据代码获取
     * @param businessCode
     * @return
     */
    BusinessDefine getByCode(String businessCode);
}
